from baserk import Baserk
from selenium.webdriver.common.by import By

class Kongfuzirk(Baserk):
    djssk = (By.ID,'com.kongfz.app:id/ll_search')
    sr = (By.ID,'com.kongfz.app:id/etContent')
    djss = (By.ID,'com.kongfz.app:id/tvSearch')

    #断言
    dy = (By.ID,'com.kongfz.app:id/tvName')

    def kongfuzdiaoyong(self,sousuo):
        self.find_ele(self.djssk).click()
        self.find_ele(self.sr).send_keys(sousuo)
        self.find_ele(self.djss).click()
